﻿using System;
using System.Threading;
using System.Threading.Tasks;

namespace async_nowait_function
{
    class Program
    {
        static void Main(string[] args)
        {
            var result = Test1();
            Console.WriteLine(result);
            Console.ReadKey();
        }
        static string Test1()
        {
            var a = "10";
            Thread t = new Thread(Test2);
            t.Start("a");
            return a;
        }
        static void Test2(object a)
        {
            for (int i = 0; i < 500; i++)
            {
                Thread.Sleep(1000);
                Console.WriteLine("这是第" + i+a.ToString());
            }
        }
    }
}
